﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ODS
{
    public class GoogleGeocodeLocationRequest
    {
        const string baseUrl = "http://maps.googleapis.com/maps/api/geocode/json?address={0}&sensor=true";

        public string Address { get; set; }

        public override string ToString()
        {
            string address = System.Net.WebUtility.UrlEncode(Address);
            string url = String.Format(baseUrl, address);
            return url;
        }
    }
}
